package SST.LIB;

/** 
 User ��ժҪ˵����
*/
public class User
{
	private int Uid = 0;
	public User(int uid)
	{
		//
		// TODO: �ڴ˴���ӹ��캯���߼�
		//
		Uid = uid;
	}

	public final String GetKey()
	{
		int agentId = Uid;
		MOLE.SQLOS o = new MOLE.SQLOS("agentinfo");
		if (o.Exists("aiagentid", agentId))
		{
			DataTable dt = o.GetDataTable("aiagentid", agentId);
			String Key = dt.Rows[0]["aikey"].toString().trim();
			return Key;

		}
		else
		{
			return " ";
		}

	}


	public static DataTable GetAdminList()
	{
String s = "select * from User_AdminList";
		DataTable d = MOLE.SQL.GetDataTable(s);
		return d;

	}


}